/*package com.glgc.projecti.web.controller;

import java.io.IOException;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import com.glgc.projecti.common.CommonConstant;
import com.glgc.projecti.common.CommonUtils;
import com.glgc.projecti.common.WeixinUtils;
import com.glgc.projecti.service.ISharingService;
import com.glgc.projecti.web.controller.base.BaseController;

@Controller
@RequestMapping("/huifang")
public class HuiFangController extends BaseController {

	@Resource private ISharingService sharingService;

	@RequestMapping("/index.do")
	public String index(String sourceType, String sourceId,
			RedirectAttributes attr, HttpSession session,
			HttpServletRequest request, Model model) throws IOException {
		session.setAttribute(CommonConstant.WEIXING_OPEN_ID, "123456");
		Map<String, String> wish = WeixinUtils.wish(request);
		if (!CommonUtils.isEmpty(sourceType)) {
			session.setAttribute("sourceType", sourceType);
		}
		model.addAttribute("wish", wish);
		model.addAttribute("openID",(String) session
				.getAttribute(CommonConstant.WEIXING_OPEN_ID));
		return "../huifang/index_huifang";
	}

	@RequestMapping("/share.do")
	public String share(String sourceType, String sourceId,
			RedirectAttributes attr, HttpSession session,
			HttpServletRequest request, Model model) throws IOException {
		Map<String, String> wish = WeixinUtils.wish(request);
		if (!CommonUtils.isEmpty(sourceType)) {
			session.setAttribute("sourceType", sourceType);
		}
		model.addAttribute("wish", wish);
		return "../question/wish_question";
	}
}
*/